package collection

import "soluty.cc/go/godash/types"

func Reject(array []T, predicate types.Predicate) []T {
	var ret []T
	for index, value := range array {
		if !predicate(value, index, array) {
			ret = append(ret, value)
		}
	}
	return ret
}
